package com.yun.springbootsecurity.service;

import com.yun.springbootsecurity.mapper.RoleMapper;
import com.yun.springbootsecurity.pojo.Role;
import org.springframework.stereotype.Service;

@Service
public class RoleService {
    private final RoleMapper roleMapper;

    public RoleService(RoleMapper roleMapper) {
        this.roleMapper = roleMapper;
    }

    public Role selectByRole(String roleId) {
        return roleMapper.selectByRoleId(roleId);
    }
}
